Ext.define('HRMS.view.user.AccountList', {
    extend: 'Ext.container.Container',
    alias: 'widget.accountlist',
    
    initComponent: function() {
        var me = this;
        Ext.applyIf(me, {
            items: [{
                
                    xtype: 'gridpanel',
                    store: 'user.Account',
                    title: 'Account List',
                    
                    dockedItems:[{
                    	xtype: 'toolbar',
                        items: [
                            {
                            	id: 'add',
                            	iconCls: 'icon-add',
                            	text: 'Add'                            	
                            }, 
                            {
                            	id: 'delete',
                            	iconCls: 'icon-delete',
                            	text: 'Delete',
                            	disabled: true                            	
                            }
                        ]
                    }],
                    
                    columns: [
                        {
                            xtype: 'gridcolumn',
                            dataIndex: 'id',
                            text: 'Employee ID'
                        },
                        {
                            xtype: 'gridcolumn',
                            dataIndex: 'firstName',
                            text: 'Username'
                        },
                        {
                            xtype: 'gridcolumn',
                            dataIndex: 'lastName',
                            text: 'Employee Name'
                        },
                        {
                            xtype: 'gridcolumn',
                            dataIndex: 'address',
                            text: 'Departement'
                        },
                        {
                            xtype: 'gridcolumn',
                            dataIndex: 'company',
                            text: 'Designation'
                        },
                        {
                            xtype: 'gridcolumn',
                            dataIndex: 'email',
                            text: 'Email Address'
                        },
                        {
                            xtype: 'gridcolumn',
                            dataIndex: 'email',
                            text: 'Profile Status'
                        }
                    ]                   
                }
            ]
        });
        
        me.callParent(arguments);
    }   

});